<? $data_list =select_lines_all_items($table_Prefix."basic_data","nid desc",
    "1 = 1","") ;?>




<table class="layui-table">

  <colgroup>
        <col width="60">
        <col width="280">
        <col width="100">
        <col width="100">
        <col width="150">
        <col>
        <col width="80">
        <col width="85">
        <col width="180">
  </colgroup>
  <thead>
    <tr>
      <th>序号</th>
      <th>任务标题</th>
      <th>执行人</th>
      <th>开始时间</th>
      <th>截止时间</th>
      <th>备注</th>
      <th>优先级</th>
      <th>状态</th>
      <th>操作</th>
    </tr>
  </thead>  
  <tbody>

  <?php
	for ($i = 0; $i < count($data_list); $i++) {
    ?>
        <tr id="item<?echo $data_list[$i]['nid']?>" >
        <td><?echo $i+1+$plate['page_list_num']*($nowpageid-1) ?>
        </td>
        <td> <?echo $data_list[$i]['name']?> </td>

    <td><?echo $principal['name'] ?: '无'?></td>

 
    <td><?echo substr($data_list[$i]['startdate'],5,5)?></td>

    <td>

    </td>


    <?php
        $note = cleanhtml($data_list[$i]['note']);
    ?>
    <td><div class="els1"><?echo $note?></div></td>
    <td>
        <?if($data_list[$i]['priority']=='普通'){ $priority_color = 'layui-bg-green';}?>
        <?if($data_list[$i]['priority']=='紧急'){ $priority_color = '';}?>
        <span class="layui-badge <?echo $priority_color?>">
        <?echo $data_list[$i]['priority']?>
        </span>
    </td>
    <td>
        <?if($data_list[$i]['status']=='进行中'){ $status_color = 'layui-bg-blue';}?>
        <?if($data_list[$i]['status']=='已完成'){ $status_color = 'layui-bg-green';}?>
        <?if($data_list[$i]['status']=='待审核'){ $status_color = '';}?>
        <?if($data_list[$i]['status']=='未开始'){ $status_color = 'layui-badge-rim';}?>
        <?if($data_list[$i]['status']=='已删除'){ $status_color = 'layui-bg-gray';}?>
        <span class="layui-badge <?echo $status_color?>">
        <?echo $data_list[$i]['status']?>
        </span>
    </td>
    <td>

    <a class="layui-btn  layui-btn-sm" onclick="windowEject('../../task/view/modules/mod-detail-edit.php?sys_part=task&nid=<? echo $data_list[$i]['nid']?>&nowpageid=<? echo $_REQUEST['nowpageid'] ?>')">
        <i class="fa fa-bar-chart-o" aria-hidden="true"></i>信息

        <?php if($data_list[$i]['notice_show'] == 1) {?><i class="notice_icon"></i><?php }?>
    </a>





  </td>
    </tr>
  <?php
}
?>



  </tbody>
</table>
